/**
 * 
 */
package app.constants;

import java.awt.Color;

import org.apache.commons.io.FilenameUtils;

public interface CollabVizConstants {
	public static final String NOTEPAD_HILITE_DATA_FILE = "notepadhilites.dat";
	public static final String NOTEPAD_DOC_FILE = "notepaddocfile.dat";
	public static final String HILITE_DATA_FILE = "hilites.dat";
	public static final String XML_CONFIG_FILE_ERROR = "";
	public static final String FILE_IO_ERROR = "";
	public static final String XML_MAPPING_FILE_ERROR = "";
	public static final String FILE_UNMARSHALL_ERROR = "";
	public static final String MARSHALL_ERROR = "";
	public static final String FILE_VALIDATION_ERROR = "";
	public static final String FILE_NOT_FOUND_ERROR = "";
	public static final String FILE_MARSHALL_INPUT_ERROR = "";
	public static final String MAPPING_FILE_ERROR = "";
	public static final String INCOMING_PARAM_EMPTY_ERROR = "";
	public static final String LOCAL_DIRECTORY = System.getProperty("user.home").replace("\\", "/") + "/Desktop/Collabviz/";
	public static final String NOTE_FOLDER = LOCAL_DIRECTORY+"notes";
	public static final String NOTEPAD_HIGHLIGHT_FOLDER = FilenameUtils.concat(LOCAL_DIRECTORY, "NotePad_Highlights");
	public static final String ANNOTATIONS_FOLDER = FilenameUtils.concat(LOCAL_DIRECTORY, "Annotations");
	public static final String FILE_DELIMITER = "/";
	public static final String ANNOTATION_DELIMITER = "~"; 
	public static final String DOT_REGEX = "\\.";
	public static final String DOT_CHAR = ".";
	public static final String XML = "xml";
	
	
	public static final String HTML_FILES_FOLDER = LOCAL_DIRECTORY+"HTML";
	public static final String COMMENTS_IMG = "/img/comments.jpg";
	public static final String NOTES_IMG = "/img/notes.jpg";
	public static final String SAVE_IMG = "/img/Save.jpg";
	public static final String SL_COMMENTS_IMG = "/img/comments.jpg";
	public static final String SL_NOTES_IMG = "/img/slNote.jpg";
	public static final String SL_COMM_NOTES_IMG = "/img/slCommNote.jpg";
	public static final String ADD_ROW_IMG = "/img/addRow.jpg";
	public static final String HISTORY_FILE_NAME = "file_history.xml";
	public static final String NOTEPAD_SAVE_FILE = "notepad_save.txt";
	public static final String DATE_FORMAT = "MM/dd/yyyy hh:mm:ss";
	public static final String ANNOTATION = "ANNOTATION";
	public static final String NOTES = "NOTES";
	public static final String USER_DATA = "USER_DATA";
	public static final String DOC_DATA = "DOC_DATA";
	public static final String FILE_NAME = "FILENAME";
	public static final String TIMESTAMP = "TIMESTAMP";
	public static final String DUMMY_FILE_NAME = "NONE";
	public static final Color CURRENT_DOC_NOTE_COLOR = new Color(195,217,255);
	public static final Color DEFAULT_NOTE_COLOR = Color.WHITE;
	public static final Color SEARCH_NOTE_COLOR = Color.LIGHT_GRAY;
	public static final Color SELECTED_ROW_COLOR = new Color(224,236,255);
	public static final int MAX_TAB_NAME_LENGTH = 15; 
	public static final int ANNOTATION_MARGIN = 200;
	// Constants for where to put the split pane dividers. 
	// These are percentages with respect to the split pane size.
	// Alter these to adjust the divider placements. 
	public static final double VIZ_NOTES_SPLIT_RATIO = 0.5; // ratio of viz height to note height 
	public static final double FILE_TREE_SPLIT_RATIO = 0.25; // ratio of file tree width to doc width
	public static final double TOP_BOTTOM_SPLIT_RATIO = 0.65; // ratio of doc height to timeline height
	public static final double LEFT_RIGHT_SPLIT_RATIO = 0.6; // ratio of timeline width to map width
	public static final double VIZWORDLIST_RATIO = 0.11; // ratio of word list width to viz width 
	
	// Our applet's size. 
	public static final int WINDOW_WIDTH = 1920;
	public static final int WINDOW_HEIGHT = 1080;
	
	public static final int SEARCH_BOX_WIDTH = 171;
	public static final int SEARCH_BOX_HEIGHT = 20;
	
	//public static final String CONFIG_FILE_NAME = "/Users/akshaybapat/Desktop/props/collabviz.properties";
	//public static final String CONFIG_FILE_NAME = LOCAL_DIRECTORY+"collabviz.properties";
	//public static final String CONFIG_FILE_NAME="http://localhost:8080/CollabViz2/collabviz.properties";
	public static final String USER_LOG_FILE_NAME = "userlog";
	public static final String SYS_LOG_FILE_NAME = "syslog";
	public static final String LOG_FOLDER = LOCAL_DIRECTORY+"Logs"; // For loading from config file. 
	public static final String INDEX_FOLDER = LOCAL_DIRECTORY+"index";
	// For formatting a human-readable string for time. 
	public static final String DATE_FORMAT_NOW = "HH:mm:ss.SSS";
	
	public static final Color OPEN_FILE_NODE_COLOR = new Color(224, 236, 255);
	public static final Color OPEN_FILE_NODE_FOCUS_COLOR = new Color(195, 217, 255);
	
}

